#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QTableWidget>

#define WIDTH  500
#define HEIGHT 350

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

signals:
    void lastItemClicked(int row);
    void signalClean();

public slots:
    void eventExport();
	void eventImport();

protected:
    void keyReleaseEvent(QKeyEvent* event);

//private function
private:
    void setupMenu();
    void setupTable();
    void setupInterface();

//private variable
private:
    QTableWidget* table;
    QMenu* menuFile;
    QMenu* menuEdit;
	QMenu* menuHelp;
	QAction* actExit;
    QAction* actExport;
	QAction* actImport;
    QAction* actClear;
	QAction* actAbout;
	QAction* actAboutQt;
};

#endif // MAINWINDOW_H
